package com.team.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 挂号单表
 * @TableName registry
 */
@TableName(value ="registry")
public class Registry implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 病人表主键ID
     */
    private Long patientId;

    /**
     * 排期表主键ID
     */
    private Long scheduleId;

    /**
     * 用户表主键ID
     */
    private Long userId;

    /**
     * 就诊科室表主键ID
     */
    private Long departmentId;

    /**
     * 就诊房间表主键ID
     */
    private Long roomId;

    /**
     * 挂号单状态 1-->已挂号，未问诊；2-->正在问诊；3-->问诊结束
     */
    private Integer status;

    /**
     * 挂号费(￥)
     */
    private BigDecimal fee;

    /**
     * 实际支付挂号费(￥)
     */
    private BigDecimal payFee;

    /**
     * 医保报销费(￥)
     */
    private BigDecimal medicareFee;

    /**
     * 是否使用医保卡 1-->未使用，2-->使用
     */
    private Integer isMedicare;

    /**
     * 挂号时间
     */
    private Date registryTime;

    /**
     * 医生问诊时间
     */
    private Date consultationTime;

    /**
     * 创建时间
     */
    private Date createdTime;

    /**
     * 修改时间
     */
    private Date updatedTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 病人表主键ID
     */
    public Long getPatientId() {
        return patientId;
    }

    /**
     * 病人表主键ID
     */
    public void setPatientId(Long patientId) {
        this.patientId = patientId;
    }

    /**
     * 排期表主键ID
     */
    public Long getScheduleId() {
        return scheduleId;
    }

    /**
     * 排期表主键ID
     */
    public void setScheduleId(Long scheduleId) {
        this.scheduleId = scheduleId;
    }

    /**
     * 用户表主键ID
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * 用户表主键ID
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 就诊科室表主键ID
     */
    public Long getDepartmentId() {
        return departmentId;
    }

    /**
     * 就诊科室表主键ID
     */
    public void setDepartmentId(Long departmentId) {
        this.departmentId = departmentId;
    }

    /**
     * 就诊房间表主键ID
     */
    public Long getRoomId() {
        return roomId;
    }

    /**
     * 就诊房间表主键ID
     */
    public void setRoomId(Long roomId) {
        this.roomId = roomId;
    }

    /**
     * 挂号单状态 1-->已挂号，未问诊；2-->正在问诊；3-->问诊结束
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 挂号单状态 1-->已挂号，未问诊；2-->正在问诊；3-->问诊结束
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 挂号费(￥)
     */
    public BigDecimal getFee() {
        return fee;
    }

    /**
     * 挂号费(￥)
     */
    public void setFee(BigDecimal fee) {
        this.fee = fee;
    }

    /**
     * 实际支付挂号费(￥)
     */
    public BigDecimal getPayFee() {
        return payFee;
    }

    /**
     * 实际支付挂号费(￥)
     */
    public void setPayFee(BigDecimal payFee) {
        this.payFee = payFee;
    }

    /**
     * 医保报销费(￥)
     */
    public BigDecimal getMedicareFee() {
        return medicareFee;
    }

    /**
     * 医保报销费(￥)
     */
    public void setMedicareFee(BigDecimal medicareFee) {
        this.medicareFee = medicareFee;
    }

    /**
     * 是否使用医保卡 1-->未使用，2-->使用
     */
    public Integer getIsMedicare() {
        return isMedicare;
    }

    /**
     * 是否使用医保卡 1-->未使用，2-->使用
     */
    public void setIsMedicare(Integer isMedicare) {
        this.isMedicare = isMedicare;
    }

    /**
     * 挂号时间
     */
    public Date getRegistryTime() {
        return registryTime;
    }

    /**
     * 挂号时间
     */
    public void setRegistryTime(Date registryTime) {
        this.registryTime = registryTime;
    }

    /**
     * 医生问诊时间
     */
    public Date getConsultationTime() {
        return consultationTime;
    }

    /**
     * 医生问诊时间
     */
    public void setConsultationTime(Date consultationTime) {
        this.consultationTime = consultationTime;
    }

    /**
     * 创建时间
     */
    public Date getCreatedTime() {
        return createdTime;
    }

    /**
     * 创建时间
     */
    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    /**
     * 修改时间
     */
    public Date getUpdatedTime() {
        return updatedTime;
    }

    /**
     * 修改时间
     */
    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Registry other = (Registry) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPatientId() == null ? other.getPatientId() == null : this.getPatientId().equals(other.getPatientId()))
            && (this.getScheduleId() == null ? other.getScheduleId() == null : this.getScheduleId().equals(other.getScheduleId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getDepartmentId() == null ? other.getDepartmentId() == null : this.getDepartmentId().equals(other.getDepartmentId()))
            && (this.getRoomId() == null ? other.getRoomId() == null : this.getRoomId().equals(other.getRoomId()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getFee() == null ? other.getFee() == null : this.getFee().equals(other.getFee()))
            && (this.getPayFee() == null ? other.getPayFee() == null : this.getPayFee().equals(other.getPayFee()))
            && (this.getMedicareFee() == null ? other.getMedicareFee() == null : this.getMedicareFee().equals(other.getMedicareFee()))
            && (this.getIsMedicare() == null ? other.getIsMedicare() == null : this.getIsMedicare().equals(other.getIsMedicare()))
            && (this.getRegistryTime() == null ? other.getRegistryTime() == null : this.getRegistryTime().equals(other.getRegistryTime()))
            && (this.getConsultationTime() == null ? other.getConsultationTime() == null : this.getConsultationTime().equals(other.getConsultationTime()))
            && (this.getCreatedTime() == null ? other.getCreatedTime() == null : this.getCreatedTime().equals(other.getCreatedTime()))
            && (this.getUpdatedTime() == null ? other.getUpdatedTime() == null : this.getUpdatedTime().equals(other.getUpdatedTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPatientId() == null) ? 0 : getPatientId().hashCode());
        result = prime * result + ((getScheduleId() == null) ? 0 : getScheduleId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getDepartmentId() == null) ? 0 : getDepartmentId().hashCode());
        result = prime * result + ((getRoomId() == null) ? 0 : getRoomId().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getFee() == null) ? 0 : getFee().hashCode());
        result = prime * result + ((getPayFee() == null) ? 0 : getPayFee().hashCode());
        result = prime * result + ((getMedicareFee() == null) ? 0 : getMedicareFee().hashCode());
        result = prime * result + ((getIsMedicare() == null) ? 0 : getIsMedicare().hashCode());
        result = prime * result + ((getRegistryTime() == null) ? 0 : getRegistryTime().hashCode());
        result = prime * result + ((getConsultationTime() == null) ? 0 : getConsultationTime().hashCode());
        result = prime * result + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode());
        result = prime * result + ((getUpdatedTime() == null) ? 0 : getUpdatedTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", patientId=").append(patientId);
        sb.append(", scheduleId=").append(scheduleId);
        sb.append(", userId=").append(userId);
        sb.append(", departmentId=").append(departmentId);
        sb.append(", roomId=").append(roomId);
        sb.append(", status=").append(status);
        sb.append(", fee=").append(fee);
        sb.append(", payFee=").append(payFee);
        sb.append(", medicareFee=").append(medicareFee);
        sb.append(", isMedicare=").append(isMedicare);
        sb.append(", registryTime=").append(registryTime);
        sb.append(", consultationTime=").append(consultationTime);
        sb.append(", createdTime=").append(createdTime);
        sb.append(", updatedTime=").append(updatedTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}